home *** CD-ROM | disk | FTP | other *** search
/ Creating Your Own America Online Web Pages / Creating Your Own America Online Web Pages.iso / TOOLS / TEX2RTF / SOURCES.ZIP / DOCS / TEX2RTF.TXT < prev    next >
Encoding:
Text File  |  1994-04-19  |  75.2 KB  |  3,033 lines

  1.  
  2.  
  3.  
  4.  
  5. Manual  for  Tex2RTF  1.34:
  6.  
  7.  
  8. A aL TE X  to  RTF  and  HTML  converter
  9. ____________________________________________________________________
  10.  
  11.  
  12. Julian Smart
  13.  
  14. Artificial Intelligence Applications Institute
  15.  
  16. University of Edinburgh
  17.  
  18. EH1 1HN
  19. March 1994
  20.                                  Artificial Intelligence Applications Institute
  21.                                                 University of Edinburgh
  22.                                                       80 South Bridge
  23.                                                             EH1 1HN
  24.                                                      Tel. 031-650-2746
  25.  
  26.  
  27. Contents
  28.  
  29.  
  30.  
  31. 1  Introduction                                                   1
  32.  
  33.  
  34.    1.1 Status of Tex2RTF  : : : : : : : : : : : : : : : : : : : : : : : : : :  1
  35.  
  36.  
  37.    1.2 Why use LaTEX?   : : : : : : : : : : : : : : : : : : : : : : : : : : :  1
  38.  
  39.  
  40.    1.3 Help versus the printed page   : : : : : : : : : : : : : : : : : : : :  2
  41.  
  42.  
  43.    1.4 Output Formats   : : : : : : : : : : : : : : : : : : : : : : : : : : :  2
  44.  
  45.  
  46.    1.5 What compromises must I make?  : : : : : : : : : : : : : : : : : :  3
  47.  
  48.  
  49.    1.6 Changes to LaTEX syntax   : : : : : : : : : : : : : : : : : : : : : :  4
  50.  
  51.  
  52.        1.6.1 Space  : : : : : : : : : : : : : : : : : : : : : : : : : : : : :  4
  53.  
  54.  
  55.        1.6.2 Command arguments   : : : : : : : : : : : : : : : : : : : :  4
  56.  
  57.  
  58.        1.6.3 Avoid the setlength macro : : : : : : : : : : : : : : : : : :  5
  59.  
  60.  
  61.        1.6.4 Units   : : : : : : : : : : : : : : : : : : : : : : : : : : : : : *
  62.  * 5
  63.  
  64.  
  65.        1.6.5 Labels  : : : : : : : : : : : : : : : : : : : : : : : : : : : : : *
  66.  * 5
  67.  
  68.  
  69.        1.6.6 Tables  : : : : : : : : : : : : : : : : : : : : : : : : : : : : : *
  70.  * 5
  71.  
  72.  
  73.    1.7 Tex2RTF change log  : : : : : : : : : : : : : : : : : : : : : : : : :  5
  74.  
  75.  
  76.  
  77. 2  Hypertext features                                             8
  78.  
  79.  
  80.  
  81. 3  Special sections                                                9
  82.  
  83.  
  84.    3.1 Bibliography   : : : : : : : : : : : : : : : : : : : : : : : : : : : : :*
  85.  *  9
  86.  
  87.  
  88.    3.2 Glossary  : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : *
  89.  *:  9
  90.  
  91.  
  92.    3.3 Index   : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : *
  93.  *:  9
  94.  
  95.  
  96.  
  97. 4  Running Tex2RTF                                            10
  98.  
  99.  
  100.    4.1 Command line arguments  : : : : : : : : : : : : : : : : : : : : : : 10
  101.  
  102.  
  103.    4.2 Initialisation file syntax  : : : : : : : : : : : : : : : : : : : : : : *
  104.  *: 11
  105.  
  106.  
  107.        4.2.1 Tex2RTF options  : : : : : : : : : : : : : : : : : : : : : : : 11
  108.  
  109.                                                                    i
  110.  
  111. ________________________________________________________CONTENTS____
  112. 5  Tex2RTF for non-LaTEX users                                  13
  113.  
  114.  
  115.    5.1 What is LaTEX?  : : : : : : : : : : : : : : : : : : : : : : : : : : : : *
  116.  *13
  117.  
  118.  
  119.    5.2 Document structure   : : : : : : : : : : : : : : : : : : : : : : : : : 14
  120.  
  121.  
  122.    5.3 Command syntax  : : : : : : : : : : : : : : : : : : : : : : : : : : : 14
  123.  
  124.  
  125.    5.4 Space   : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : *
  126.  *: 15
  127.  
  128.  
  129.  
  130. 6  Macro reference                                               16
  131.  
  132.  
  133.    6.1 Commands   : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : 16
  134.  
  135.  
  136.    6.2 Accents  : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : :*
  137.  * 36
  138.  
  139.  
  140.  
  141. 7  Bugs and troubleshooting                                     37
  142.  
  143.  
  144.    7.1 Bugs  : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : *
  145.  *: 37
  146.  
  147.  
  148.    7.2 Troubleshooting : : : : : : : : : : : : : : : : : : : : : : : : : : : : *
  149.  *37
  150.  
  151.  
  152.        7.2.1 Macro not found  : : : : : : : : : : : : : : : : : : : : : : : 37
  153.  
  154.  
  155.        7.2.2 Unresolved reference  : : : : : : : : : : : : : : : : : : : : : 38
  156.  
  157.  
  158.        7.2.3 Output crashes the RTF reader  : : : : : : : : : : : : : : : 38
  159.  
  160.  
  161.        7.2.4 Erratic list indentation : : : : : : : : : : : : : : : : : : : : 38
  162.  
  163.  
  164.        7.2.5 Missing figure or section reference   : : : : : : : : : : : : : 38
  165.  
  166.  
  167.        7.2.6 Unresolved references in Word for Windows  : : : : : : : : 39
  168.  
  169.  
  170.  
  171. Bibliography                                                     40
  172.  
  173.  
  174.  
  175. Glossary                                                         41
  176.                                                                   ii
  177.  
  178.  
  179. Copyright  notice
  180.  
  181. Copyright (c) 1993 Julian Smart.
  182.  
  183.  
  184. Permission to use, copy, modify, and distribute this software and its documen-
  185. tation for any purpose is hereby granted without fee, provided that the above
  186. copyright notice, author statement and this permission notice appear in all
  187. copies of this software and related documentation.
  188.  
  189.  
  190. THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY
  191. OF ANY KIND, EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITH-
  192. OUT LIMITATION, ANY WARRANTY OF MERCHANTABILITY OR FIT-
  193. NESS FOR A PARTICULAR PURPOSE.
  194.  
  195.  
  196. IN NO EVENT SHALL JULIAN SMART OR THE ARTIFICIAL INTELLI-
  197. GENCE APPLICATIONS INSTITUTE OR UNIVERSITY OF EDINBURGH
  198. BE LIABLE FOR ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSE-
  199. QUENTIAL DAMAGES OF ANY KIND, OR ANY DAMAGES WHATSO-
  200. EVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER
  201. OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY
  202. THEORY OF LIABILITY, ARISING OUT OF OR IN CONNECTION WITH
  203. THE USE OR PERFORMANCE OF THIS SOFTWARE.
  204.  
  205.                                                                   iii
  206.  
  207.  
  208. 1.      Introduction
  209. ____________________________________________________________________
  210.  
  211.  
  212.  
  213. This document describes a utility for converting LaTEX files into several other
  214. formats, and the C++ library which the converters rely on for parsing and other
  215. services.
  216.  
  217.  
  218. Only a subset of LaTEX can be processed by this utility, especially since the t*
  219.  *arget
  220. document language will never perfectly match LaTEX. Whether the quality of
  221. the results is good enough will depend upon the application and your own
  222. expectations.
  223.  
  224.  
  225. Tex2RTF is heavily biased towards making on-line, hypertext versions of LaTEX
  226. documents, but the RTF converter can be used for normal, linear documents
  227. too.
  228.  
  229.  
  230. The latest version of Tex2RTF can be accessed by anonymous ftp from:
  231. skye.aiai.ed.ac.uk (192.41.104.6)
  232.  
  233.  
  234. in the directory /pub/tex2rtf. It is available in SPARC Open Look and Windows
  235. 3.1 versions.
  236.  
  237.  
  238. Tex2RTF was developed using the free Open Look, Motif and Windows 3.1
  239. C++ class library wxWindows, also available from the above FTP site in the
  240. /pub/wxwin/beta directory.
  241. 1.1   Status of Tex2RTF
  242.  
  243.  
  244. Tex2RTF is under continual development, often following users' suggestions.
  245. From version 1.33, Tex2RTF is effectively in a second phase of development. In
  246. addition to the bare minimum of syntax and facilities for producing useable help
  247. systems or linear RTF, commands are being added to allow visually effective,
  248. even aesthetically pleasing, documentation to be produced.
  249.  
  250.  
  251. Examples are the indented, twocollist and marginpar  commands; over time
  252. I hope to be able to reproduce most of the popular styles of formatting and
  253. presentation in Windows Help files, whilst allowing a reasonable equivalent to
  254. be generated in the other formats.
  255. 1.2   Why use LaTEX?
  256.  
  257.  
  258. LaTEX happens to be a very convenient format if you need to produce documents
  259. (such as manuals, help facilities, up-to-date information) in both printed and
  260. on-line media.  Being a language rather than a WYSIWYG system, it allows
  261. explicit specification of layout and document structure, lending itself well to
  262.                                                                   1
  263.  
  264. ________________________________________________________CHAPTER_1___
  265. hypertext applications and automatic document generation. Many people also
  266. prefer to use LaTEX for ordinary use since it encourages a logical document
  267. structure and the user is not distracted by having to perfect the appearance;
  268. many layout decisions are taken by LaTEX automatically.
  269.  
  270.  
  271. Although LaTEX is not as fancy as modern word processors and desk-top pub-
  272. lishing packages, it is for many purposes quite adequate, and sometimes more
  273. flexible than its modern counterparts.
  274.  
  275.  
  276. The conversion utility gives LaTEX a new lease of life by allowing virtually all
  277. other wordprocessor formats to be generated from documents containing a rea-
  278. sonable subset of LaTEX syntax.  From the same LaTEX sources, we can now
  279. generate printed manuals, Windows Help files, wxHelp  files, RTF-compatible
  280. word processor formats such as MS Word, and HTML files for use in the World
  281. Wide Web. Since the conversion tool is free, as are LaTEX, HTML viewers, wx-
  282. Help and (effectively) Windows Help, there are no financial or time penalties
  283. for providing documentation in a wide range of printed and hypertext formats.
  284. 1.3   Help versus the printed page
  285.  
  286.  
  287. The purist may argue, quite rightly, that on-line help systems and printed man-
  288. uals have different characteristics; help windows tend to be much smaller than
  289. pages, help topics should be more stand-alone than pages in a manual, naviga-
  290. tion methods are very different, etc. Therefore, help systems should be based on
  291. printed documentation but separately hand-crafted into hypertext help, prefer-
  292. ably by an independent person or team.
  293.  
  294.  
  295. This might be the ideal, but many organisations or individuals simply do not
  296. have the time: on-line help wouldn't get done if the documentation effort had to
  297. be doubled. However, Tex2RTF does provide some commands to allow tailoring
  298. the docmentation to printed or on-line form, such as helponly and helpignore. An
  299. awareness of the design issues should go a long way to making the compromise
  300. a good one, so a book such as [1] is highly recommended.
  301. 1.4   Output Formats
  302.  
  303.  
  304. At present the following output formats are supported:
  305.  
  306.  
  307.  
  308.    o RTF (Rich Text Format). This is the most well developed converter. RTF
  309.      is commonly used as a document exchange format amongst Windows-
  310.      based applications, and is the input for the Windows Help Compiler.
  311.      Tex2RTF supports both linear documents and Windows Help hypertext
  312.      format.
  313.  
  314.    o wxHelp.  This is the platform-independent help system for the class li-
  315.      brary wxWindows [5]. It can display ASCII files with embedded codes for
  316.      changing font styles, but no formatting is done by wxHelp.
  317.  
  318.    o HTML (Hypertext Markup Language). This an SGML-like format com-
  319.      monly used by documents in the World Wide Web distributed hypertext
  320.      system, and formats text dynamically rather like Windows Help.
  321.  
  322.  
  323.  
  324.                                                                   2
  325.  
  326. ________________________________________________________CHAPTER_1___
  327. 1.5   What compromises must I make?
  328.  
  329.  
  330. As a LaTEX user, you need to be aware that some macros or facilities don't
  331. transfer to other formats, either because they are not supported by the target
  332. format or because the converter does not support them. Maths formatting is a
  333. good example of an unsupported feature.
  334.  
  335.  
  336. Sometimes LaTEX facilities must be accessed in a slightly different way to supp*
  337.  *ort
  338. the variety of formats, particularly hypertext formats where LaTEX references
  339. are often replaced by hypertext jumps (but must still look right in printed
  340. documentation). Tables don't transfer well to RTF (and not at all to the other
  341. formats) but an attempt is made to approximate tables so long as special row
  342. macros are used, instead of the usual end of row delimiter.
  343.  
  344.  
  345. Bibliographies are handled quite well since the utilities can read in .bib files
  346. and resolve citations. Numbers are used in citations; the references are not yet
  347. sorted alphabetically.
  348.  
  349.  
  350. Pictures are handled in a limited way: if the PSBOX macro package is used, an
  351. image macro can be used to place Encapsulated PostScript files in LaTEX, and
  352. Windows RGB-encoded bitmap files or placeable metafiles when converting to
  353. RTF.
  354.  
  355.  
  356. Nested file inclusion (input, include, verbatiminput), is handled, and the com-
  357. ment environment is supported. However, using input to include macro packages
  358. is not advisable. If you do this, make sure you add a line in the Tex2RTF ini-
  359. tialisation file to ignore this file, unless it's a simple LaTEX file that conf*
  360.  *orms to
  361. Tex2RTF restrictions. The file psbox.tex is the only file ignored by Tex2RTF
  362. by default.
  363.  
  364.  
  365. Because of the way LaTEX is parsed, some syntax has to conform to a few simple
  366. rules.  Macros such as bf and it need to occur immediately after a left brace,
  367. and have a block of their own, since the text within their scope is regarded as
  368. its argument. This syntax means the same thing as using begin ... end, which
  369. is usually a one argument macro (the argument is the text between the begin
  370. and end). See Space (section 1.6.1) .
  371.  
  372.  
  373. As a Windows hypertext help writer, you don't have access to all RTF com-
  374. mands but you'll be able to get most of what you want. In particular, any LaTEX
  375. document you write will automatically be a hypertext document, because the
  376. converter takes advantage of the hierarchy of sections.  Further jumps can be
  377. placed using the commands label, helpref, helprefn, and popref. Tex2RTF
  378. outputs help files that may be read linearly using the  << and >> buttons,
  379. and an additonal Up button for ease of navigation.
  380.  
  381.  
  382. When writing HTML, multiple files are generated from one LaTEX file since
  383. browsing HTML works best with many small files rather than a few large ones.
  384.  
  385.  
  386. wxHelp files are least well supported since there is no formatting support, only
  387. font style, sizes and colours.  Still, some hypertext help support on UNIX/X
  388. platforms is better than none. The class library wxWindows may be extended
  389. in future to allow using a better help viewer, such as xmosaic. Of course there*
  390.  * is
  391. nothing to stop xmosaic being used as a help system, but it won't be integrated
  392. with wxWindows programs as wxHelp is.
  393.  
  394.                                                                   3
  395.  
  396. ________________________________________________________CHAPTER_1___
  397. Sometimes you will use a local macro package that is unrecognised by the con-
  398. verters.  In this case, you may define a custom macro file where macros are
  399. defined in terms of supported LaTEX commands and text. Even if the result is
  400. not the same as in LaTEX, you can probably end up with something adequate,
  401. and at least avoid undefined macro errors. See Initialisation file syntax (sec-
  402. tion 4.2)  for further information.
  403. 1.6   Changes to LaTEX syntax
  404.  
  405.  
  406. Here are the conventions you need to observe to satisfy the Tex2RTF parser.
  407.  
  408.  
  409.  
  410. 1.6.1 Space
  411.  
  412.  
  413. Tex2RTF attempts to insert spaces where LaTEX assumes whitespace. However,
  414. for the benefit of RTF conversion, you need to use the \rtfsp macro where
  415. a command or brace within a paragraph begins or ends with a macro.  For
  416. example:
  417. Within a paragraph, you need to be careful about commands that begin
  418. "rtfsp -"it at the start" of a line.
  419.  
  420.  
  421. As normal with LaTEX, two newlines represents a paragraph break, although
  422. par can also be used at the end of a paragraph.
  423.  
  424.  
  425. You need to have a blank line between section and some environment commands
  426. and the first paragraph or your document will look rather weird, e.g. headings
  427. running into paragraphs.
  428.  
  429.  
  430. wxHelp is more fussy than LaTEX or RTF: you need to use percent characters
  431. at line ends liberally to eliminate newlines after commands on single lines.
  432.  
  433.  
  434.  
  435. 1.6.2 Command arguments
  436.  
  437.  
  438. Commands that have one or more arguments can be used in the following three
  439. ways:
  440. "bf-Some text."
  441.  
  442.  
  443. "begin-bf"
  444. Some text.
  445. "end-bf"
  446.  
  447.  
  448. -"bf Some text."
  449.  
  450.  
  451. The first method is a normal LaTEX command.
  452.  
  453.  
  454. The second method is called an environment; LaTEX has specific environments
  455. that do not always correspond to normal commands, but Tex2RTF recognizes
  456. environments and normal commands interchangeably, so long as the command
  457. has no more than two arguments.
  458.  
  459.  
  460. With the third method, it is important that the command has its own pair of
  461. braces, and that the command immediately follows the first brace. Otherwise,
  462. the parser cannot parse the argument(s) properly.  With multiple arguments,
  463.                                                                   4
  464.  
  465. ________________________________________________________CHAPTER_1___
  466. each should be enclosed in braces.
  467.  
  468.  
  469. Optional arguments are specified using square brackets or parentheses.
  470.  
  471.  
  472. Whitespace should be avoided between command names and their arguments.
  473.  
  474.  
  475.  
  476. 1.6.3 Avoid the setlength macro
  477.  
  478.  
  479. Using the \setlength command doesn't work, since its first argument looks like
  480. a macro with the wrong number of arguments. Use an alternative form instead,
  481. e.g.
  482. "parindent 0pt
  483.  
  484.  
  485. instead of
  486. "setlength-"parindent"-0pt"
  487.  
  488.  
  489.  
  490. 1.6.4 Units
  491.  
  492.  
  493. Only a subset of LaTEX units may be used for specifying dimensions. Valid units
  494. are pt, mm, cm and in. Units should usually be specified for dimensions or the
  495. results may be unexpected.
  496.  
  497.  
  498.  
  499. 1.6.5 Labels
  500.  
  501.  
  502. The label command may be used for sections and figure captions, but must
  503. come immediately after the section or caption commands with no intervening
  504. whitespace.
  505.  
  506.  
  507.  
  508. 1.6.6 Tables
  509.  
  510.  
  511. For best layout, table rows should be enclosed in a row or ruledrow command,
  512. since Tex2RTF can't cope with parsing the LaTEX tabular syntax unaided. How-
  513. ever, if you really don't want to go through LaTEX files inserting new syntax,
  514. set the compatibility flag to TRUE in your tex2rtf.ini file.  In this mode,
  515. Tex2RTF tries to make the best of a bad job, but the results won't be optimal
  516. (e.g., no table borders). Without this flag set, normal LaTEX tables can crash
  517. RTF readers such as Word for Windows.
  518. 1.7   Tex2RTF change log
  519.  
  520.  
  521. Changes in version 1.34:
  522.  
  523.  
  524.  
  525.    o Added multicolumn `support' to stop RTF readers crashing.
  526.  
  527.    o Added useWord, defaultColumnWidth, compatibility options to .ini file.
  528.  
  529.    o comment environment now doesn't complain about unknown syntax.
  530.  
  531.    o Added toocomplex environment that treats its contents as verbatim in
  532.      output, treated as normal output in true LaTEX.
  533.  
  534.    o End-of-line comments allowed in in .ini files, using semicolon, percent or
  535.      hash characters to denote a comment.
  536.  
  537.  
  538.  
  539.                                                                   5
  540.  
  541. ________________________________________________________CHAPTER_1___
  542.    o For linear RTF, Word for Windows support for printindex, index, pageref,
  543.      listoftables, listoffigures, contents page.
  544.  
  545.    o Added RTF support for various symbols.
  546.  
  547.    o Added colour support, with definecolour, fcol and bcol commands.
  548.  
  549.    o Fixed some bugs:  page numbering problems, macros deleted after first
  550.      pass.
  551.  
  552.  
  553.  
  554. Changes in version 1.33:
  555.  
  556.  
  557.  
  558.    o Added -charset command-line switch.
  559.  
  560.    o Added itemsep, twocolumn, onecolumn, setfooter, setheader, pagestyle,
  561.      pagenumbering, thechapter, thesection, thepage, thebibliography, bibitem
  562.      commands.
  563.  
  564.    o New environment called twocollist for making two-column lists, with for-
  565.      matting optimized for target file format.
  566.  
  567.    o New indented environment for controlling indentation.
  568.  
  569.    o List indentation and bulleting improved.
  570.  
  571.    o Added commands normalbox, normalboxd for putting borders around text.
  572.  
  573.    o Many options can now be specified in the .ini file along with custom
  574.      macros.
  575.  
  576.    o Cured bug that put too much vertical space after some commands.
  577.  
  578.    o Improved table formatting.
  579.  
  580.    o Optional `Up' button in WinHelp files for easier navigation.
  581.  
  582.    o Verbatim lines followed by par in RTF, to improve WinHelp wrapping.
  583.  
  584.    o Conversion may now be aborted under Windows by attempting to close
  585.      the application.
  586.  
  587.    o Added conditional output for all formats:  latexignore, latexonly, rtfig-
  588.      nore, rtfonly, winhelpignore, winhelponly, htmlignore, htmlonly, xlpignore,
  589.      xlponly.
  590.  
  591.    o HTML generator can now add Contents, Up, << and >> buttons (text or
  592.      bitmap) to each page except titlepage.
  593.  
  594.  
  595.  
  596. Changes in version 1.32:
  597.  
  598.  
  599.  
  600.    o footnote command now supported in WinHelp RTF, and footnotepopup
  601.      added.
  602.  
  603.  
  604.  
  605. Changes in version 1.31:
  606.  
  607.  
  608.  
  609.    o footnote command now supported, in linear RTF only.
  610.  
  611.    o Added -bufsize option, for converting large documents.
  612.  
  613.  
  614.  
  615. Changes in version 1.30:
  616.  
  617.  
  618.  
  619.    o image command now scales metafiles (but not bitmaps).
  620.  
  621.  
  622.  
  623.                                                                   6
  624.  
  625. ________________________________________________________CHAPTER_1___
  626.    o Fixed macro loading bug, now informs the user of the found macro file-
  627.      name.
  628.  
  629.    o Now supports paragraph and subparagraph commands.
  630.  
  631.    o Support for some accents added.
  632.  
  633.    o verb command now supported.
  634.  
  635.    o Bug in subsubsection handling fixed.
  636.  
  637.    o Can save conversion log in a text file.
  638.  
  639.  
  640.  
  641. Changes in version 1.22:
  642.  
  643.  
  644.  
  645.    o More informative, warns against use of some commands.
  646.  
  647.    o Added compile-time support for non-GUI environments (such as plain
  648.      UNIX).
  649.  
  650.    o Improved HTML support.
  651.  
  652.  
  653.  
  654.                                                                   7
  655.  
  656.  
  657. 2.      Hypertext  features
  658. ____________________________________________________________________
  659.  
  660.  
  661.  
  662. LaTEX is inherently suitable for specifying hypertext documents since it encour-
  663. ages description of the logical structure of a document using section commands.
  664. Therefore, a LaTEX document is automatically a hypertext document, without
  665. any further editing.
  666.  
  667.  
  668. For Windows Help, a single RTF file is generated with topics corresponding
  669. to sections. A top level contents page shows each chapter or top-level section,
  670. and each chapter or section ends with a list of further sections or subsections.
  671. Tex2RTF outputs help files that may be read linearly using the  << and >>
  672. buttons.
  673.  
  674.  
  675. Similarly, a single wxHelp XLP file is generated.
  676.  
  677.  
  678. For HTML, a different file is generated for each section, since the XMOSAIC
  679. browser works best with a large number of small files.  The files are named
  680. automatically based on the name of the output file, with the contents page
  681. filename being formed from the output filename with _contents appended to
  682. the name. This may result in the generation of several hundred files for a large
  683. LaTEX input file.
  684.  
  685.  
  686. To specify explicit jumps around a hypertext file, the helpref macro is used.
  687. The first argument is the text to be displayed at the point of reference, which
  688. will be highlighted in a hypertext file to allow jumping to a reference.  The
  689. second argument is the reference label (there should be a corresponding  label
  690. command in the file, following a section or figure).
  691.  
  692.  
  693. To use extra Tex2RTF features in proper LaTEX, such as helpref and the
  694. C++ and CLIPS class reference documentation features, include the style file
  695. texhelp.sty.
  696.  
  697.  
  698.                                                                   8
  699.  
  700.  
  701. 3.      Special  sections
  702. ____________________________________________________________________
  703.  
  704.  
  705.  
  706. The treatment of bibliography, glossary and index are worth special mention.
  707. 3.1   Bibliography
  708.  
  709.  
  710. Tex2RTF recognises standard LaTEX bibliography files (usually with .bib exten-
  711. sion) and resolves citations. The bibliography command reads the given .bib
  712. file and includes a list of references at that point in the input. Only numbere*
  713.  *d,
  714. unsorted references are catered for at the moment, with no variation in bibli-
  715. ography style. A References heading is placed in the contents section. Note
  716. that Tex2RTF must be run twice to ensure the citations are resolved properly.
  717.  
  718.  
  719. Tex2RTF can also cope with the thebibliography environment, with  bibitem
  720. commands, so long as the text following the first bibitem argument is enclosed
  721. in braces as if it were a second argument.
  722. 3.2   Glossary
  723.  
  724.  
  725. Glossaries are formatted according to the following scheme. The helpglossary
  726. environment is used together with the gloss command for glossary entries. In
  727. LaTEX this is interpreted as a description list, and each glossary entry is an *
  728.  *item.
  729. In on-line help, each glossary entry is a section.
  730.  
  731.  
  732. A labelled glossary entry command may be referenced by popref to provide a
  733. quick popup explanation of a term.
  734. 3.3   Index
  735.  
  736.  
  737. The explicit index is assumed to be redundant in on-line help, since search
  738. facilities are provided. Therefore the printindex command does nothing in on-
  739. line versions. In linear RTF an index field is added, and index marks words for
  740. inserting in the index.
  741.  
  742.  
  743. In Windows Help, all section headings and C++ function names are treated as
  744. keywords. A keyword may be ambiguous, that is, refer to more than one section
  745. in the help file. This automatic indexing may not always be adequate, so the
  746. LaTEX index command may be used to add keywords.
  747.  
  748.  
  749. In wxHelp, all section headings are indexed.
  750.  
  751.  
  752.                                                                   9
  753.  
  754.  
  755. 4.      Running  Tex2RTF
  756. ____________________________________________________________________
  757.  
  758.  
  759.  
  760. Tex2RTF may be run in a number of ways:  with or without command line
  761. arguments, interactively or in batch mode, and with an optional initialisation
  762. file for specifying LaTEX macros and detailed options.
  763.  
  764.  
  765. Tex2RTF accepts two arguments (input and output filenames) and trailing (op-
  766. tional) switches.  If both filenames are given, the utility will work in batch
  767. mode.  Otherwise, if Tex2RTF has been compiled for GUI operation, a main
  768. window will be shown, with appropriate menu items for selecting input and
  769. output filenames, starting off the conversion process, and so on.
  770.  
  771.  
  772. Note that if the file bullet.bmp is found by Tex2RTF, this bitmap will be used
  773. as the bullet for items in itemize lists, for WinHelp output. Otherwise, a symb*
  774.  *ol
  775. will be inserted (linear RTF) or bold `o' will be used instead (all other forma*
  776.  *ts).
  777.  
  778.  
  779. Syntax error reporting is fairly minimal.  Unrecognised macro errors may ac-
  780. tually be produced by an unbalanced brace or passing the wrong number of
  781. arguments to a macro, so look in the vicinity of the error for the real cause.
  782.  
  783.  
  784. It is recommended that you run Tex2RTF twice in order to be sure of of resolving
  785. all references and including an up-to-date contents page.
  786.  
  787.  
  788. If importing RTF files into Word for Windows, you may need to reformat the
  789. document. The easiest way to do this is to select all text with CTRL-A, then
  790. reformat with F9. Reformat again to ensure all references are resolved. For the
  791. second format, respond with Update Entire Table to prompts.
  792. 4.1   Command line arguments
  793.  
  794.  
  795. These are the optional arguments you may give Tex2RTF on the command line.
  796.  
  797.  
  798.  
  799. -bufsizeSpecifies buffer size in K (default 60 under Windows, 500 under UNIX).
  800.      Large files (particularly large verbatim environments) may require a large
  801.      buffer size, equal to the largest argument of a LaTEX command. Note that
  802.      this value may not be larger than 64 under Windows.
  803.  
  804. -html Specifies HTML (World Wide Web) output.
  805.  
  806. -interactiveForces interactive mode even if both filenames are given.
  807.  
  808. -charset charsetSpecifies a character set for RTF production.  This can be
  809.      one of ansi, mac, pc, and pca. The default is ansi.
  810.  
  811. -macros filename Specifies a file for the custom macro file - see Macro not
  812.      found error (section 7.2.1) .
  813.                                                                  10
  814.  
  815. ________________________________________________________CHAPTER_4___
  816. -rtfSpecifies linear RTF output.
  817.  
  818. -sync Forces synchronous mode (no yielding to other processes) - usually use
  819.      this in non-interactive mode.
  820.  
  821. -twiceTells Tex2RTF to run the conversion twice to ensure all references and
  822.      citations are resolved and the contents page included.
  823.  
  824. -winhelp Specifies Windows Help RTF output.
  825. 4.2   Initialisation file syntax
  826.  
  827.  
  828. The initialisation file contains further detailed options for customising Tex2R*
  829.  *TF's
  830. behaviour. A file may be specified with the -macros command line switch, oth-
  831. erwise Tex2RTF looks for the file tex2rtf.ini in the working directory or input
  832. file directory.
  833.  
  834.  
  835. The file may comprise macro definitions or option settings.
  836.  
  837.  
  838. The syntax for a macro definition is:
  839. "name [number of args] -...LaTeX code..."
  840.  
  841.  
  842. For example:
  843. "crazy      [2]--"bf #2" is crazy but #1 is not"
  844. "something  [0]-"
  845. "julian     [0]-Julian Smart"
  846.  
  847.  
  848. The syntax for an option setting is:
  849. name = value
  850.  
  851.  
  852. or
  853. name = "value"
  854.  
  855.  
  856. For example:
  857. conversionMode = RTF
  858. runTwice = true
  859. titleFontSize = 12
  860. authorFontSize = 10
  861. headerRule = yes
  862. footerRule = yes
  863.  
  864.  
  865. Options expecting boolean values accept 1, 0, true, false, yes, no in any com-
  866. bination of upper or lower case.
  867.  
  868.  
  869. End-of-line comments are allowed in an initialisation file, using the hash, sem*
  870.  *i-
  871. colon or percent signs to denote the start of a comment, which runs until the
  872. end of the line.
  873.  
  874.  
  875.  
  876. 4.2.1 Tex2RTF options
  877.  
  878.  
  879. These are the allowable options in an initialisation file.
  880.  
  881.  
  882.  
  883.                                                                  11
  884.  
  885. ________________________________________________________CHAPTER_4___
  886.  
  887.  Option              Description
  888. _______________________________________________________________________
  889.  
  890.  compatibility        Set to true for maximum LaTEX compatibility, e.g.  if
  891.                       tables crash RTF readers.  Should be false (default) if
  892.                       the Tex2RTF guidelines are followed, e.g.  use of row
  893.                       command in tabular environment.
  894.  
  895.  
  896.  conversionMode       One of RTF, WinHelp, XLP (or wxHelp), and HTML.
  897.  
  898.  
  899.  documentFontSize     One of 10, 11 and 12, to specify the main font size in-
  900.                       dependently of the LaTEX document style command.
  901.  
  902.  
  903.  chapterFontSize      Specifies the point size for chapter headings (RTF only).
  904.  
  905.  
  906.  sectionFontSize      Specifies the point size for section headings (RTF only).
  907.  
  908.  
  909.  subsectionFontSize   Specifies the point size for subsection headings (RTF
  910.                       only).
  911.  
  912.  
  913.  titleFontSize        Specifies the point size for the title (RTF only).
  914.  
  915.  
  916.  authorFontSize       Specifies the point size for the author and date (RTF
  917.                       only).
  918.  
  919.  
  920.  ignoreInput          Adds the filename to the list of files ignored by the in-
  921.                       put command.  The only default filename in the list is
  922.                       psbox.tex.
  923.  
  924.  
  925.  mirrorMargins        If true, margins are mirrored in twosided documents
  926.                       (linear RTF only).
  927.  
  928.  
  929.  runTwice             If true, runs the converter twice.
  930.  
  931.  
  932.  isInteractive        If true, runs in interactive mode (the default).
  933.  
  934.  
  935.  headerRule           If true, draws a rule below headers (linear RTF only).
  936.  
  937.  
  938.  footerRule           If true, draws a rule above footers (linear RTF only).
  939.  
  940.  
  941.  listLabelIndent      Specifies the size of list item label indentation, in poi*
  942.  *nts.
  943.                       The default is 18.
  944.  
  945.  
  946.  listItemIndent       Specifies the size of list item indentation, in points. T*
  947.  *he
  948.                       default is 40.
  949.  
  950.  
  951.  indexSubsections     If true (the default), subsection and subsubsection titles
  952.                       are indexed in RTF mode.
  953.  
  954.  
  955.  useWord              If true (the default), Word for Windows RTF formatting
  956.                       is used where possibly, e.g. for the table of contents, l*
  957.  *ist
  958.                       of tables, and list of figures.
  959.  
  960.  
  961.  useHeadingStyles     If true (the default), sections are marked with1appropri-2
  962.                       ate heading styles for generating the table of contents
  963.                       in RTF.
  964.  
  965.  
  966.  useUpButton          If true (the default), WinHelp files will be generated
  967.                       with an Up button to make browsing easier. Note that
  968.                       you need to put an extra line in the CONFIG section of
  969.                       your .HPJ file:
  970.                       CreateButton("Up", "&Up", "JumpId(`name.hlp',
  971.                       `Contents')")
  972.                       where name.hlp is the name of your help file.
  973.  
  974.  
  975.  htmlBrowseButtons    Allows generation of Contents, Up, browse back and
  976.                       browse forward buttons on each HTML page except ti-
  977.                       tle page.  Specify none, text or bitmap.  If you spec-
  978.                       ify bitmap, make sure that the files contents.gif, up.gif,
  979.                       back.gif and forward.gif are in the directory where the
  980.                       HTML files will reside: samples are given in the docs
  981.                       directory.
  982.  
  983.  
  984.  defaultColumnWidth   The width in points for columns in tables where the
  985.                       width of the column is not set by using p in the tabular
  986.                       argument. The default is 100.
  987.  
  988.  
  989. 5.      Tex2RTF  for  non-LaTEX  users
  990. ____________________________________________________________________
  991.  
  992.  
  993.  
  994. You don't need to have LaTEX installed to use Tex2RTF. You can still output
  995. RTF files to be imported into your favourite word processor, and hypertext files
  996. for on-line help.
  997.  
  998.  
  999. This chapter gives a very brief introduction to LaTEX. For further information,
  1000. Kopka and Daly's A Guide to LaTEX [2] is recommended.
  1001. 5.1   What is LaTEX?
  1002.  
  1003.  
  1004. LaTEX is a macro package built on top of the typesetting package, TEX. TEX
  1005. was written by Donald Knuth in the 1970s, and Leslie Lamport wrote LaTEX as
  1006. a higher-level, easier way to write TEX.
  1007.  
  1008.  
  1009. TEX was quite advanced for its day, and is still used (particularly by academic*
  1010.  *s)
  1011. because of its free availability and its flexibility in typesetting maths and o*
  1012.  *ther
  1013. symbols. It's more like a programming language than a word processor, with
  1014. embedded commands prefixed by a backslash and block structure.  Like pro-
  1015. grams, TEX documents are processed by a `compiler', outputting a .dvi file,
  1016. which is a device independent file which can be read by many converters for
  1017. output onto physical devices, such as screens and printers.
  1018.  
  1019.  
  1020. A reason for its longevity is the ability to add facilities to TEX, using macro
  1021. packages that define new commands.
  1022.  
  1023.  
  1024. LaTEX is the most popular way to write TEX. Although WYSIWYG word pro-
  1025. cessors and DTP packages are outstripping LaTEX, the increasing interest in
  1026. hypertext and mark-up languages makes LaTEX relevant as a similar language
  1027. to SGML documents (such as World Wide Web HTML files).
  1028.  
  1029.  
  1030. Also, languages such as LaTEX (and Rich Text Format, which it resembles in
  1031. many ways) are complementary to WYSIWYG packages. These languages allow
  1032. automatic production and translation of documents, where manual mark-up is
  1033. impractical or undesirable.
  1034.  
  1035.  
  1036. Since the source code of TEX and LaTEX is in the public domain, there are
  1037. many free and commercial implementations of LaTEX for almost every computer
  1038. in existance.  Of PC implementations, EmTeX is arguably the best and most
  1039. complete. You can download it from various FTP sites.
  1040.  
  1041.  
  1042. If you don't want to use LaTEX itself, you may wish to use a program called
  1043. lacheck to check your documents before using Tex2RTF, since it catches some
  1044. mistakes that Tex2RTF doesn't.
  1045.  
  1046.  
  1047.  
  1048.                                                                  13
  1049.  
  1050. ________________________________________________________CHAPTER_5___
  1051. 5.2   Document structure
  1052.  
  1053.  
  1054. Here is a sample of a typical LaTEX document:
  1055. "documentstyle[a4,texhelp]-report"
  1056. "title-A title"
  1057. "author-Julian Smart"
  1058. "date-October 1993"
  1059. "begin-document"
  1060. "maketitle
  1061.  
  1062.  
  1063. "chapter-Introduction"
  1064.  
  1065.  
  1066. ...
  1067.  
  1068.  
  1069. "section-A section"
  1070.  
  1071.  
  1072. ...
  1073.  
  1074.  
  1075. "end-document"
  1076.  
  1077.  
  1078. The first line is always a documentstyle command. The square brackets enclose
  1079. optional style files (suffix .sty) that alter the appearance of the document or
  1080. provide new commands, and the curly brackets enclose the mandatory style, in
  1081. this case `report'.
  1082.  
  1083.  
  1084. Before the document begins properly with \begin{document}, you can write
  1085. various commands that have an effect on the appearance of the document or
  1086. define title page information. The maketitle command writes the title page using
  1087. information defined previously (title, author, date).
  1088.  
  1089.  
  1090. A report has chapters, which are divided into sections, and can be further
  1091. divided into subsections and subsubsections. To start a new section, you write
  1092. the appropriate section command with the section heading; there is no specific
  1093. end section command, since a new section heading or the end of the document
  1094. will indicate the end of the previous section.
  1095.  
  1096.  
  1097. An article is divided into sections, subsections and subsubsections, but has no
  1098. chapters. This is so an article can be included in a report as a chapter.
  1099.  
  1100.  
  1101. Tex2RTF is written to deal with reports best, so stick with the report style if
  1102. you can.
  1103. 5.3   Command syntax
  1104.  
  1105.  
  1106. There are several kinds of commands in LaTEX. Most involve a keyword prefixed
  1107. with a backslash. Here are some examples:
  1108. "titlepage
  1109.  
  1110.  
  1111. "centerline-This is a centred line"
  1112.  
  1113.  
  1114. "begin-center"
  1115. This is a centred
  1116. paragraph
  1117.                                                                  14
  1118.  
  1119. ________________________________________________________CHAPTER_5___
  1120. "end-center"
  1121.  
  1122.  
  1123. -"bf This is bold font"
  1124.  
  1125.  
  1126. The first example has no arguments. The second has one argument. The third
  1127. example is an environment which uses the begin and end keywords instead of a
  1128. pair of braces to enclose an argument (usually one). The fourth is an example
  1129. of using a command within a pair of braces: the command applies to the scope
  1130. within the braces.  Tex2RTF treats this form as if it were a command with
  1131. one argument, with the right brace delimiting the argument. In this case, the
  1132. command must immediately follow a left brace as shown.
  1133.  
  1134.  
  1135. Commands may be nested, but not overlapped.
  1136. 5.4   Space
  1137.  
  1138.  
  1139. In LaTEX, white space is mostly ignored, line breaks make no difference. How-
  1140. ever, LaTEX interprets two successive newlines (a blank line) as denoting a par*
  1141.  *a-
  1142. graph break. You may also use the par command to end a paragraph.
  1143.  
  1144.  
  1145. To be continued!
  1146.                                                                  15
  1147.  
  1148.  
  1149. 6.      Macro  reference
  1150. ____________________________________________________________________
  1151.  
  1152.  
  1153.  
  1154. The following lists macros which are recognised by the converters. Other macros
  1155. not not mentioned can be assumed to be unrecognised or ignored.
  1156.  
  1157.  
  1158. Each command is listed with its name, the number of arguments it takes (ex-
  1159. cluding optional arguments), and a description. Note that if the command is
  1160. used as an environment (using begin and end) then the number of arguments
  1161. must be either one or two. For example, the tabular environment takes two argu-
  1162. ments: a first argument for specifying the formatting, and the second argument
  1163. for the body of the environment.
  1164. "begin-tabular"-_l_l_"
  1165. "row-One"-Two"
  1166. "row-Three"-Four"
  1167. "end-tabular"
  1168. 6.1   Commands
  1169.  
  1170.  
  1171. abstract:1
  1172.  
  1173.  
  1174. This standard LaTEX environment prepares an abstract page, and is treated as
  1175. an ordinary chapter or section in on-line help.
  1176.  
  1177.  
  1178.  
  1179. addcontentsline:3
  1180.  
  1181.  
  1182. Adds a chapter title to the contents page. Linear RTF. Rarely required.
  1183.  
  1184.  
  1185.  
  1186. author:1
  1187.  
  1188.  
  1189. Defines the author, for output when maketitle is used.
  1190.  
  1191.  
  1192.  
  1193. backslash:0
  1194.  
  1195.  
  1196. Outputs a backslash in math mode (should be enclosed by two dollar symbols).
  1197.  
  1198.  
  1199.  
  1200. bcol:2
  1201.  
  1202.  
  1203. Sets the background colour for a block of text (RTF only). Has no known effect
  1204. in the RTF readers currently tried (Word for Window and Windows Help).
  1205.  
  1206.  
  1207. See also definecolour, fcol.
  1208.  
  1209.  
  1210.  
  1211.                                                                  16
  1212.  
  1213. ________________________________________________________CHAPTER_6___
  1214. bf:1
  1215.  
  1216.  
  1217. Specifies bold font.
  1218.  
  1219.  
  1220.  
  1221. bibitem:2
  1222.  
  1223.  
  1224. For parsing convenience, bibitem requires two arguments: a cite key and item.
  1225. LaTEX syntax permits writing this as if it were two arguments, even though it
  1226. is in fact only one.  This command is used within a thebibliography envi-
  1227. ronment. The preferred method is to store references in .bib files and use the
  1228. bibliography command to generate a bibliography section automatically.
  1229.  
  1230.  
  1231.  
  1232. bibliographystyle:1
  1233.  
  1234.  
  1235. Currently doesn't affect the style of bibliography, but probably will in the fu*
  1236.  *ture.
  1237.  
  1238.  
  1239.  
  1240. bibliography:0
  1241.  
  1242.  
  1243. Includes the bibliography at this point in the document.  See the section on
  1244. bibliographies (section 3.1) .
  1245.  
  1246.  
  1247.  
  1248. caption:1
  1249.  
  1250.  
  1251. Specifies a caption (within a figure environment). This may be followed imme-
  1252. diately by a label command.
  1253.  
  1254.  
  1255.  
  1256. cdots:0
  1257.  
  1258.  
  1259. Outputs three dots.
  1260.  
  1261.  
  1262.  
  1263. centerline:1
  1264.  
  1265.  
  1266. Centres (or centers!) a line of text.
  1267.  
  1268.  
  1269.  
  1270. center:1
  1271.  
  1272.  
  1273. Centres a block of text.
  1274.  
  1275.  
  1276.  
  1277. cextract:0
  1278.  
  1279.  
  1280. Prints a C++ extraction operator (>>).
  1281.  
  1282.  
  1283.  
  1284. chapter*:1
  1285.  
  1286.  
  1287. Outputs a chapter heading with no contents entry.
  1288.  
  1289.  
  1290.  
  1291. chapter:1
  1292.  
  1293.  
  1294. Outputs a chapter heading.
  1295.  
  1296.  
  1297.  
  1298.                                                                  17
  1299.  
  1300. ________________________________________________________CHAPTER_6___
  1301. chapterheading:1
  1302.  
  1303.  
  1304. Like chapter, but does not increment the chapter number and does not print a
  1305. chapter number in the printed documentation contents page, or in the chapter
  1306. heading. Used to implement glossaries (section 3.2)  and other sections that
  1307. are not real chapters.
  1308.  
  1309.  
  1310.  
  1311. cinsert:0
  1312.  
  1313.  
  1314. Prints a C++ insertion operator (<<).
  1315.  
  1316.  
  1317.  
  1318. cite:1
  1319.  
  1320.  
  1321. Cite a reference. The argument is a reference key as defined in a LaTEX .bib fi*
  1322.  *le.
  1323.  
  1324.  
  1325.  
  1326. class:1
  1327.  
  1328.  
  1329. Outputs the argument, an index entry (LaTEX only) and a keyword entry (Win-
  1330. Help only). Used in class reference documentation.
  1331.  
  1332.  
  1333.  
  1334. clipsfunc:3
  1335.  
  1336.  
  1337. Formats a CLIPS function, given the return value, function name, and argu-
  1338. ments.
  1339.  
  1340.  
  1341.  
  1342. comment:1
  1343.  
  1344.  
  1345. An environment that allows large comments in LaTEX files:  the argument is
  1346. ignored in all formats. Useful for commenting out parts of files that cannot be
  1347. handled by LaTEX, such as the picture environment. See also toocomplex.
  1348.  
  1349.  
  1350.  
  1351. copyright:0
  1352.  
  1353.  
  1354. Outputs the copyright symbol.
  1355.  
  1356.  
  1357.  
  1358. cparam:2
  1359.  
  1360.  
  1361. Formats a CLIPS type and argument.  Used within the third argument of a
  1362. clipsfunc command.
  1363.  
  1364.  
  1365.  
  1366. date:1
  1367.  
  1368.  
  1369. Specifies the date of a document; only output by maketitle.
  1370.  
  1371.  
  1372.  
  1373. definecolour:4
  1374.  
  1375.  
  1376. Defines a new colour that can be used in the document (RTF only).  This
  1377. command can also be spelt definecolor.
  1378.  
  1379.  
  1380. The first argument is the lower-case name of the colour, and the following three
  1381.  
  1382.  
  1383.  
  1384.                                                                  18
  1385.  
  1386. ________________________________________________________CHAPTER_6___
  1387. arguments specify the red, green and blue intensities, in the range 0 to 255.
  1388.  
  1389.  
  1390. The default colours are equivalent to the following definitions:
  1391. "definecolour-black"-0"-0"-0"
  1392. "definecolour-cyan"-0"-255"-255"
  1393. "definecolour-green"-0"-255"-0"
  1394. "definecolour-magenta"-255"-0"-255"
  1395. "definecolour-red"-255"-0"-0"
  1396. "definecolour-yellow"-255"-255"-0"
  1397. "definecolour-white"-255"-255"-255"
  1398.  
  1399.  
  1400. To use colours in a document, use the fcol and bcol commands.
  1401.  
  1402.  
  1403. Note that a document that defines its own colours should be converted twice
  1404. within the same Tex2RTF session.
  1405.  
  1406.  
  1407.  
  1408. description:1
  1409.  
  1410.  
  1411. A list environment, where each item command must be followed by optional
  1412. square-bracketed text which will be highlighted.
  1413.  
  1414.  
  1415.  
  1416. documentstyle:1
  1417.  
  1418.  
  1419. Specifies the main style (report, article etc.) and, optionally, style files su*
  1420.  *ch as
  1421. texhelp.sty. A report has chapters, while an article's top-level sections are
  1422. specified using section.
  1423.  
  1424.  
  1425.  
  1426. document:1
  1427.  
  1428.  
  1429. This environment should enclose the body of a document.
  1430.  
  1431.  
  1432.  
  1433. em:1
  1434.  
  1435.  
  1436. Emphasizes text (italic in RTF).
  1437.  
  1438.  
  1439.  
  1440. enumerate:1
  1441.  
  1442.  
  1443. Enumerate list environment: numbers the items.
  1444.  
  1445.  
  1446.  
  1447. fcol:2
  1448.  
  1449.  
  1450. Sets the foreground colour for a block of text (RTF only).
  1451.  
  1452.  
  1453. For example:
  1454. This sentence is brightened up by some "fcol-red"-red text".
  1455.  
  1456.  
  1457. gives:
  1458.  
  1459.  
  1460. This sentence is brightened up by some .
  1461.  
  1462.  
  1463. See also definecolour, bcol.
  1464.                                                                  19
  1465.  
  1466. ________________________________________________________CHAPTER_6___
  1467. figure:1
  1468.  
  1469.  
  1470. A figure enviroment: does nothin in RTF.
  1471.  
  1472.  
  1473.  
  1474. flushleft:1
  1475.  
  1476.  
  1477. Flushes the given text to the left margin.
  1478.  
  1479.  
  1480.  
  1481. flushright:1
  1482.  
  1483.  
  1484. Flushes the given text to the right margin.
  1485.  
  1486.  
  1487.  
  1488. footnote:1
  1489.  
  1490.  
  1491. In linear RTF, a footnote is created. Whether this appears at the end of the
  1492. section or the bottom of the page appears to depend on the current document
  1493. style, at least for MS Word 6.0 for Windows. The default seems to be to put the
  1494. footnotes at the end of the section, which is probably not the best assumption.
  1495.  
  1496.  
  1497. In WinHelp RTF, a bracketed number is generated for the footnote and the
  1498. footnote becomes a popup topic. It is probably preferable to change footnote
  1499. commands to footnotepopup (section 6.1) , or popref (section 6.1) references
  1500. to glossary entries.
  1501.  
  1502.  
  1503. This command is not supported for formats other than LaTEX, linear RTF and
  1504. WinHelp RTF.
  1505.  
  1506.  
  1507.  
  1508. footnotepopup:2
  1509.  
  1510.  
  1511. In linear RTF, a footnote is created following the first argument, as with foot-
  1512. note (section 6.1) .
  1513.  
  1514.  
  1515. In WinHelp RTF, a the first argument is highlighted and becomes a popup
  1516. reference to the second argument. See also footnote (section 6.1) and popref
  1517. (section 6.1) .
  1518.  
  1519.  
  1520. This command is not supported for formats other than LaTEX, linear RTF and
  1521. WinHelp RTF.
  1522.  
  1523.  
  1524.  
  1525. functionsection:1
  1526.  
  1527.  
  1528. Defines a subsection, adding the C++ function name to the LaTEX index or the
  1529. WinHelp keyword list.
  1530.  
  1531.  
  1532. Should be followed by a func command to specify function details.
  1533.  
  1534.  
  1535.  
  1536. func:3
  1537.  
  1538.  
  1539. Defines a C++ function, given the return type, function name, and parameter
  1540. list.
  1541.  
  1542.  
  1543. Should occur after a functionsection command.
  1544.  
  1545.  
  1546.  
  1547.                                                                  20
  1548.  
  1549. ________________________________________________________CHAPTER_6___
  1550. gloss:1
  1551.  
  1552.  
  1553. Marks a glossary entry. In LaTEX, this is a synonym for an item with an optional
  1554. argument, within a description environment, and the argument is added to the
  1555. index.
  1556.  
  1557.  
  1558. In Windows Help, this is identical to a section* in a report.
  1559.  
  1560.  
  1561. If labels are associated with the glossary entries, they can be referenced by
  1562. helpref (section 6.1)  or popref (section 6.1)  jumps.  A glossary entry is
  1563. currently the only type of destination that popref may refer to.
  1564.  
  1565.  
  1566. This is an example of making a glossary in a report:
  1567. "begin-helpglossary"
  1568.  
  1569.  
  1570. "gloss-API""label-api"
  1571.  
  1572.  
  1573. Application Programmer's Interface - a set of calls and classes defining
  1574. how a library (in this case, wxWindows) can be used.
  1575.  
  1576.  
  1577. "gloss-Canvas""label-canvas"
  1578.  
  1579.  
  1580. A canvas in XView and wxWindows is a subwindow...
  1581.  
  1582.  
  1583. "gloss-DDE""label-dde"
  1584.  
  1585.  
  1586. Dynamic Data Exchange - Microsoft's interprocess communication protocol.
  1587. wxWindows provides an abstraction of DDE under both Windows and UNIX.
  1588.  
  1589.  
  1590. "end-helpglossary"
  1591.  
  1592.  
  1593.  
  1594. helpglossary:1
  1595.  
  1596.  
  1597. An environment for making a glossary (not standard LaTEX). See gloss for usage.
  1598.  
  1599.  
  1600.  
  1601. helpignore:1
  1602.  
  1603.  
  1604. Ignores the argument in Tex2RTF generated files, but not LaTEX.
  1605.  
  1606.  
  1607.  
  1608. helponly:1
  1609.  
  1610.  
  1611. Only outputs the argument in Tex2RTF generated files.
  1612.  
  1613.  
  1614.  
  1615. helpinput:1
  1616.  
  1617.  
  1618. Only includes the given file in Tex2RTF generated files.
  1619.  
  1620.  
  1621.  
  1622. helpfontfamily:1
  1623.  
  1624.  
  1625. Specifies the font family for Tex2RTF generated files.  The argument may be
  1626. Swiss or Times.
  1627.  
  1628.                                                                  21
  1629.  
  1630. ________________________________________________________CHAPTER_6___
  1631. helpfontsize:1
  1632.  
  1633.  
  1634. Specifies the font size for Tex2RTF generated files.
  1635.  
  1636.  
  1637.  
  1638. helpref:2
  1639.  
  1640.  
  1641. Specifies a jump to a labelled chapter, section, subsection subsubsection or
  1642. figure.
  1643.  
  1644.  
  1645. The first argument is text to be highlighted (mouseable in help systems) and
  1646. the second is the reference label.  In linear documents, the section number is
  1647. given following the text, unless the helprefn command is used instead, where
  1648. the section number is suppressed.
  1649.  
  1650.  
  1651. Note that when generating HTML, the label contents is automatically defined,
  1652. and may be referenced using helpref.
  1653.  
  1654.  
  1655.  
  1656. helprefn:2
  1657.  
  1658.  
  1659. Specifies a jump to a labelled chapter, section, subsection subsubsection or
  1660. figure.
  1661.  
  1662.  
  1663. The first argument is text to be highlighted (mouseable in help systems) and
  1664. the second is the reference label.  See helpref for the form where the section
  1665. number is printed in linear documents.
  1666.  
  1667.  
  1668.  
  1669. hline:0
  1670.  
  1671.  
  1672. Within a tabular environment, draws a horizontal rule below the current row.
  1673. Note that this does not work in RTF for the last row of a table, in which case
  1674. the command ruledrow should be used instead.
  1675.  
  1676.  
  1677.  
  1678. hrule:0
  1679.  
  1680.  
  1681. Draws a horizontal line below the current paragraph. For example:
  1682. This paragraph should have a horizontal rule following it."hrule
  1683.  
  1684.  
  1685. gives:
  1686.  
  1687.  
  1688. This_paragraph_should_have_a_horizontal_rule_following_it.__________
  1689.  
  1690.  
  1691.  
  1692. htmlignore:1
  1693.  
  1694.  
  1695. Ignores the argument in HTML.
  1696.  
  1697.  
  1698.  
  1699. htmlonly:1
  1700.  
  1701.  
  1702. Only outputs the argument in HTML.
  1703.  
  1704.  
  1705.                                                                  22
  1706.  
  1707. ________________________________________________________CHAPTER_6___
  1708. huge:1
  1709.  
  1710.  
  1711. Outputs the argument in huge text.
  1712.  
  1713.  
  1714.  
  1715. Huge:1
  1716.  
  1717.  
  1718. Outputs the argument in huger text that huge.
  1719.  
  1720.  
  1721.  
  1722. HUGE:1
  1723.  
  1724.  
  1725. Outputs the argument in huger text that Huge.
  1726.  
  1727.  
  1728.  
  1729. include:1
  1730.  
  1731.  
  1732. Include the given file. The command must not be preceded by any whitespace,
  1733. and spurious whitespace between elements of the command will also trip up
  1734. Tex2RTF.
  1735.  
  1736.  
  1737.  
  1738. indented:2
  1739.  
  1740.  
  1741. Environment supplied by Tex2RTF to allow (possibly nested) indentation of
  1742. LaTEX and RTF text. The first argument is the amount to be indented.
  1743.  
  1744.  
  1745. For example:
  1746. "begin-indented"-2cm"
  1747. This text should be indented by a couple of centimetres. This can be
  1748. useful to highlight paragraphs.
  1749. "end-indented"
  1750.  
  1751.  
  1752. produces:
  1753.  
  1754.  
  1755.  
  1756.            This text should be indented by a couple of centimetres. This can
  1757.            be useful to highlight paragraphs.
  1758.  
  1759.  
  1760.  
  1761. input:1
  1762.  
  1763.  
  1764. Include the given file. The command must not be preceded by any whitespace,
  1765. and spurious whitespace between elements of the command will also trip up
  1766. Tex2RTF.
  1767.  
  1768.  
  1769.  
  1770. itemize:1
  1771.  
  1772.  
  1773. Indents each item of a list and precedes with a bullet. If the file bullet.bmp
  1774. is found by Tex2RTF, this bitmap will be used as the bullet (WinHelp RTF);
  1775. otherwise, a symbol or bold `o' will be used instead, depending on output forma*
  1776.  *t.
  1777.  
  1778.  
  1779. Use itemsep to specify the separation between list items. Currently this only
  1780. works for linear or WinHelp RTF output.  If the value is more than zero, an
  1781. extra paragraph is inserted.
  1782.  
  1783.  
  1784.                                                                  23
  1785.  
  1786. ________________________________________________________CHAPTER_6___
  1787. item:0
  1788.  
  1789.  
  1790. Marks an item of a itemize, description or enumerate list. Items within a
  1791. description environment should have an `optional' argument in square brackets
  1792. which will be highlighted.
  1793.  
  1794.  
  1795.  
  1796. itemsep:0
  1797.  
  1798.  
  1799. Use this command to specify the separation between list items. Currently this
  1800. only works for linear or WinHelp RTF output.  If the value is zero, no extra
  1801. paragraph is inserted; if the value is more than zero, an extra paragraph is
  1802. inserted.
  1803.  
  1804.  
  1805.  
  1806. image:2
  1807.  
  1808.  
  1809. This is translated to a PSBOX macro package psboxto command in LaTEX, the
  1810. first argument being a sizing command and the second a filename.
  1811.  
  1812.  
  1813. In HTML mode, the second argument is used to generate a PostScript file
  1814. reference.
  1815.  
  1816.  
  1817. In RTF mode, the second argument is tried with first a BMP extension and then
  1818. a WMF extension to find a suitable Windows bitmap file or placeable metafile.
  1819. If a suitable file is found, in Windows Help mode a bmc command is inserted
  1820. into the RTF file with a reference to the file. In linear RTF mode, the bitmap
  1821. or metafile is converted into hex and inserted into the RTF document.
  1822.  
  1823.  
  1824. Note that only RGB-encoded Windows bitmaps, or placeable metafiles, are valid
  1825. for input to Tex2RTF. You can convert a RLE (run length encoded) bitmap file
  1826. into a (bigger) RGB file using a program such as Paintshop Pro.  A place-
  1827. able metafile has a special header with dimension information.  One may be
  1828. constructed by a wxWindows program by calling the function wxMakeMetafile-
  1829. Placeable. The Microsoft Windows SDK has a sample program that loads and
  1830. steps through placeable and ordinary metafiles.
  1831.  
  1832.  
  1833. Here is an example of using the image command.
  1834. "begin-figure"
  1835. $$"image-5cm;0cm"-heart.ps"$$
  1836.  
  1837.  
  1838. "caption-My picture""label-piccy"
  1839. "end-figure"
  1840.  
  1841.  
  1842. The dollars centre the image in the horizontal plane.  The syntax of the first
  1843. argument to image is taken from syntax used by the psbox package: it allows
  1844. specification of the horizontal and vertical dimensions of the image. Scaling w*
  1845.  *ill
  1846. take place for PostScript and metafile images.  A value of zero indicates that
  1847. the image should be scaled in proportion to the non-zero dimension. Zeros for
  1848. both dimensions will leave the image unscaled in the case of metafiles, or scal*
  1849.  *ed
  1850. to fit the page in the case of PostScript.
  1851.  
  1852.  
  1853.  
  1854.                                                                  24
  1855.  
  1856. ________________________________________________________CHAPTER_6___
  1857. index:1
  1858.  
  1859.  
  1860. In WinHelp mode, adds a keyword to the keyword list for the current topic. This
  1861. keyword must currently be straight text, with no embedded commands.  The
  1862. conversion process must be run twice (without quitting Tex2RTF inbetween) to
  1863. resolve the keyword references.
  1864.  
  1865.  
  1866.  
  1867. it:1
  1868.  
  1869.  
  1870. Marks the argument in italic.
  1871.  
  1872.  
  1873.  
  1874. label:1
  1875.  
  1876.  
  1877. Labels the chapter, section, subsection, subsubsection or figure caption with t*
  1878.  *he
  1879. given label. This must be an ASCII string, and duplicate items with different
  1880. case letters are not allowed.
  1881.  
  1882.  
  1883. The command must follow immediately after the section or caption command,
  1884. with no intervening whitespace.
  1885.  
  1886.  
  1887.  
  1888. large:1
  1889.  
  1890.  
  1891. Marks the argument in large text.
  1892.  
  1893.  
  1894.  
  1895. Large:1
  1896.  
  1897.  
  1898. Makes the argument display in larger text than large.
  1899.  
  1900.  
  1901.  
  1902. LARGE:1
  1903.  
  1904.  
  1905. Makes the argument display in larger text than Large.
  1906.  
  1907.  
  1908.  
  1909. LaTeX:0
  1910.  
  1911.  
  1912. Outputs the annoying LaTEX upper and lower case name.
  1913.  
  1914.  
  1915.  
  1916. latexignore:1
  1917.  
  1918.  
  1919. Ignores the argument in LaTEX.
  1920.  
  1921.  
  1922.  
  1923. latexonly:1
  1924.  
  1925.  
  1926. Only prints the argument in LaTEX.
  1927.  
  1928.  
  1929.  
  1930. ldots
  1931.  
  1932.  
  1933. Outputs three dots.
  1934.                                                                  25
  1935.  
  1936. ________________________________________________________CHAPTER_6___
  1937. maketitle
  1938.  
  1939.  
  1940. Makes the article or report title by outputting the title, author and optionally
  1941. date.
  1942.  
  1943.  
  1944.  
  1945. marginparwidth:1
  1946.  
  1947.  
  1948. Specifies the width of a margin paragraph.
  1949.  
  1950.  
  1951.  
  1952. marginpar:1
  1953.  
  1954.  
  1955. Inserts a marginal note. It is best to use the Tex2RTF extensions marginpar-
  1956. odd and marginpareven  for best results.
  1957.  
  1958.  
  1959.  
  1960. marginpareven:1
  1961.  
  1962.  
  1963. Inserts a marginal note on even pages.  This is required for RTF generation
  1964. since it is impossible for Tex2RTF to know in advance which side of paper the
  1965. marginal note will fall upon, and the text has to be positioned using absolute
  1966. dimensions. If only one sided output is required, use marginparodd  instead.
  1967.  
  1968.  
  1969.  
  1970. marginparodd:1
  1971.  
  1972.  
  1973. Inserts a marginal note on odd pages.  This is required for RTF generation
  1974. since it is impossible for Tex2RTF to know in advance which side of paper the
  1975. marginal note will fall upon, and the text has to be positioned using absolute
  1976. dimensions.
  1977.  
  1978.  
  1979. Also, even if one-sided output is required, this command should be used instead
  1980. of marginpar because the LaTEX macro allows it to be used just before a para-
  1981. graph. Normally, if this were done, the marginal note would not be aligned with
  1982. the paragraph succeeding it. For example:
  1983. "marginparodd--"it Note:" if nothing happens, perhaps you have not plugged
  1984. your computer in at the mains."%
  1985. To start using your WhizzyGig Computer 4001, push the Power button and
  1986. wait for some kind of response.
  1987.  
  1988.  
  1989. Note the percent sign after the marginparodd command: without it, LaTEX re-
  1990. fuses to believe that the following text is part of the same paragraph, and will
  1991. print the note at the wrong place.
  1992.  
  1993.  
  1994. You should use textwidth to allow space for marginal notes, and also margin-
  1995. parwidth to specify the size of the marginal note.
  1996.  
  1997.  
  1998. In WinHelp, HTML and wxHelp, marginal notes are treated as normal text
  1999. delineated with horizontal rules above and below.
  2000.  
  2001.  
  2002.  
  2003. membersection:1
  2004.  
  2005.  
  2006. Used when formatting C++ classes to print a subsection for the member name.
  2007.  
  2008.  
  2009.                                                                  26
  2010.  
  2011. ________________________________________________________CHAPTER_6___
  2012. member:1
  2013.  
  2014.  
  2015. Used to format a C++ member variable name.
  2016.  
  2017.  
  2018.  
  2019. multicolumn:3
  2020.  
  2021.  
  2022. Used in tabular environment to denote a cell that spans more than one column.
  2023. Only supplied for compatibility with existing LaTEX files, since all it does in
  2024. RTF is output the correct number of cell commands, with the multicolumn text
  2025. squashed into one cell.
  2026.  
  2027.  
  2028.  
  2029. newcommand:3
  2030.  
  2031.  
  2032. Define a new command; arguments are the command, the number of arguments,
  2033. and the command body. For example:
  2034. "newcommand-"crazy"[2]--"bf #1" is crazy but -"bf #2" is not."
  2035.  
  2036.  
  2037. The command must have no whitespace at the start of the line or between the
  2038. three arguments.
  2039.  
  2040.  
  2041. New commands may also be defined in the tex2rtf.ini file using slightly dif-
  2042. ferent syntax (see Macro not found error (section 7.2.1) ).
  2043.  
  2044.  
  2045.  
  2046. newpage:0
  2047.  
  2048.  
  2049. Inserts a page break.
  2050.  
  2051.  
  2052.  
  2053. nocite:1
  2054.  
  2055.  
  2056. Specifies that this reference should appear in the bibliography, but the citati*
  2057.  *on
  2058. should not appear in the text.
  2059.  
  2060.  
  2061. See also cite.
  2062.  
  2063.  
  2064.  
  2065. noindent:0
  2066.  
  2067.  
  2068. Sets paragraph indentation to zero. See also parindent.
  2069.  
  2070.  
  2071.  
  2072. normalbox:1
  2073.  
  2074.  
  2075. Draws a box around the given paragraph in LaTEX and RTF. In HTML and
  2076. XLP formats, horizontal rules are drawn before and after the text.
  2077.  
  2078.  
  2079. For example:
  2080. "normalbox-This should be a boxed paragraph for highlighting important
  2081. information, such as information for registering a shareware program."
  2082.  
  2083.  
  2084. gives:
  2085. _____________________________________________________________________
  2086. | This should be a boxed paragraph for highlighting important information,such|
  2087. | as information for registering a shareware program.                 |
  2088. |____________________________________________________________________ |
  2089.  
  2090.  
  2091.  
  2092.                                                                  27
  2093.  
  2094. ________________________________________________________CHAPTER_6___
  2095. See also normalboxd for double-bordered text.
  2096.  
  2097.  
  2098.  
  2099. normalboxd:1
  2100.  
  2101.  
  2102. Draws a double border around the given paragraph in LaTEX and RTF. In HTML
  2103. and XLP formats, horizontal rules are drawn before and after the text.
  2104.  
  2105.  
  2106. For example:
  2107. "normalboxd-This should be a boxed paragraph for highlighting important
  2108. information, such as information for registering a shareware program."
  2109.  
  2110.  
  2111. gives:
  2112. ________________________________________________________________________
  2113. |   This should be a boxed paragraph for highlighting important information,suc*
  2114.  *h|
  2115. | |                                                                    ||
  2116. | | as information for registering a shareware program.                ||
  2117. |_|____________________________________________________________________||_
  2118.  
  2119. See also normalbox for single-bordered text.
  2120.  
  2121.  
  2122.  
  2123. normalsize:1
  2124.  
  2125.  
  2126. Sets the font size back to normal.
  2127.  
  2128.  
  2129.  
  2130. onecolumn:0
  2131.  
  2132.  
  2133. Sets the number of columns to one. LaTEX and linear RTF only.
  2134.  
  2135.  
  2136.  
  2137. pageref:1
  2138.  
  2139.  
  2140. In linear RTF, generates a page reference to the given label.
  2141.  
  2142.  
  2143.  
  2144. pagestyle:1
  2145.  
  2146.  
  2147. If argument is fancyplain or fancy, Tex2RTF separates the header from the rest
  2148. of the page with a rule. This command must be defined for headers and footers
  2149. to work properly. See also setheader, setfooter.
  2150.  
  2151.  
  2152. LaTEX and linear RTF only.
  2153.  
  2154.  
  2155.  
  2156. pagenumbering:1
  2157.  
  2158.  
  2159. The argument may be one of:
  2160.  
  2161.  
  2162.  
  2163. alph a, b, ...
  2164.  
  2165. Alph A, B, ...
  2166.  
  2167. arabic 1, 2, ...
  2168.  
  2169. roman  i, ii, ...
  2170.  
  2171. Roman   I, II, ...
  2172.  
  2173.  
  2174.  
  2175. LaTEX and linear RTF only.
  2176.  
  2177.  
  2178.  
  2179.                                                                  28
  2180.  
  2181. ________________________________________________________CHAPTER_6___
  2182. paragraph*
  2183.  
  2184.  
  2185. Behaves as for a subsubsection.
  2186.  
  2187.  
  2188.  
  2189. paragraph
  2190.  
  2191.  
  2192. Behaves as for a subsubsection.
  2193.  
  2194.  
  2195.  
  2196. param:1
  2197.  
  2198.  
  2199. Formats a C++ type and argument pair.  Should be used within the third
  2200. argument of a a func command.
  2201.  
  2202.  
  2203.  
  2204. parindent:1
  2205.  
  2206.  
  2207. Indents the first line of succeeding paragraphs by the given amount.
  2208.  
  2209.  
  2210.  
  2211. parskip:1
  2212.  
  2213.  
  2214. Changes the spacing between paragraphs. In fact, in RTF this will cause two
  2215. par commands to be output if parindent is greater than zero.
  2216.  
  2217.  
  2218.  
  2219. par:0
  2220.  
  2221.  
  2222. Causes the paragraph to end at this point. LaTEX and Tex2RTF also treat two
  2223. consecutive newlines as a paragraph break.
  2224.  
  2225.  
  2226.  
  2227. printindex
  2228.  
  2229.  
  2230. In linear RTF, inserts an index.
  2231.  
  2232.  
  2233.  
  2234. popref:2
  2235.  
  2236.  
  2237. Similar to helprefn, except that in Windows Help, the destination text is
  2238. popped up in a small window to be dismissed with a mouse click, instead of
  2239. going to a separate section.
  2240.  
  2241.  
  2242. Currently this command can only refer to a labelled glossary entry; see gloss.
  2243.  
  2244.  
  2245.  
  2246. psboxto:2
  2247.  
  2248.  
  2249. Identical to image.
  2250.  
  2251.  
  2252.  
  2253. quote:1
  2254.  
  2255.  
  2256. Indents a short quotation.
  2257.  
  2258.  
  2259.  
  2260. quotation:1
  2261.  
  2262.  
  2263. Indents a long quotation.
  2264.  
  2265.  
  2266.  
  2267.                                                                  29
  2268.  
  2269. ________________________________________________________CHAPTER_6___
  2270. ref:1
  2271.  
  2272.  
  2273. In LaTEX and linear RTF, refers to a label and causes the number of that section
  2274. or figure to be printed.
  2275.  
  2276.  
  2277.  
  2278. rm:1
  2279.  
  2280.  
  2281. Causes the argument to be formatted in a plain, roman font.
  2282.  
  2283.  
  2284.  
  2285. row:1
  2286.  
  2287.  
  2288. A Tex2RTF command signifying the row of a table within the tabular envi-
  2289. ronment. See also ruledrow.
  2290.  
  2291.  
  2292.  
  2293. ruledrow:1
  2294.  
  2295.  
  2296. A Tex2RTF command signifying a ruled row of a table within the tabular
  2297. environment. See also row.
  2298.  
  2299.  
  2300.  
  2301. rtfignore:1
  2302.  
  2303.  
  2304. Ignores the argument in linear RTF.
  2305.  
  2306.  
  2307.  
  2308. rtfonly:1
  2309.  
  2310.  
  2311. Only outputs the argument in linear RTF.
  2312.  
  2313.  
  2314.  
  2315. rtfsp:0
  2316.  
  2317.  
  2318. Outputs a space in RTF. Tex2RTF tries to insert a space where one is implied
  2319. by a newline, but cannot cope where a line starts or ends with a command, in
  2320. the middle of a paragraph. Use this command to insert a space explicitly.
  2321.  
  2322.  
  2323.  
  2324. sc:1
  2325.  
  2326.  
  2327. Prints the output in small capitals.
  2328.  
  2329.  
  2330.  
  2331. section*:1
  2332.  
  2333.  
  2334. Section header, with no entry in the contents page.
  2335.  
  2336.  
  2337.  
  2338. section:1
  2339.  
  2340.  
  2341. Section header, with an entry in the contents page.
  2342.  
  2343.  
  2344.  
  2345. sectionheading:1
  2346.  
  2347.  
  2348. Like section, but does not increment the section number and does not print a
  2349. section number in the printed documentation contents page, or in the section
  2350.  
  2351.  
  2352.  
  2353.                                                                  30
  2354.  
  2355. ________________________________________________________CHAPTER_6___
  2356. heading.
  2357.  
  2358.  
  2359.  
  2360. setfooter:6
  2361.  
  2362.  
  2363. Tex2RTF has a non-standard way of setting headers and footers, but the default
  2364. macro definitions in texhelp.sty may be altered to your current method.
  2365.  
  2366.  
  2367. The arguments are as follows:
  2368.  
  2369.  
  2370.   1. Left footer, even pages
  2371.  
  2372.   2. Centre footer, even pages
  2373.  
  2374.   3. Right footer, even pages
  2375.  
  2376.   4. Left footer, odd pages
  2377.  
  2378.   5. Centre footer, odd pages
  2379.  
  2380.   6. Right footer, odd pages
  2381.  
  2382.  
  2383. For many documents, the first three arguments will be left empty.
  2384.  
  2385.  
  2386. The behaviour for first pages of a chapter, section or document is to have a
  2387. blank header, but print the footer.
  2388.  
  2389.  
  2390. For best results, define headers and footers for each chapter or section.
  2391.  
  2392.  
  2393. Note that this command works only for LaTEX and linear RTF. See also set-
  2394. header.
  2395.  
  2396.  
  2397.  
  2398. setheader:6
  2399.  
  2400.  
  2401. Tex2RTF has a non-standard way of setting headers and footers, but the default
  2402. macro definitions in texhelp.sty may be altered to your current method.
  2403.  
  2404.  
  2405. The arguments are as follows:
  2406.  
  2407.  
  2408.   1. Left header, even pages
  2409.  
  2410.   2. Centre header, even pages
  2411.  
  2412.   3. Right header, even pages
  2413.  
  2414.   4. Left header, odd pages
  2415.  
  2416.   5. Centre header, odd pages
  2417.  
  2418.   6. Right header, odd pages
  2419.  
  2420.  
  2421. For many documents, the first three arguments will be left empty. If pagestyle
  2422. is not plain or empty, the header will separated from the rest of the page by a
  2423. rule.
  2424.  
  2425.  
  2426. The behaviour for first pages of a chapter, section or document is to have a
  2427. blank header, but print the footer.
  2428.  
  2429.  
  2430. For best results, define headers and footers for each chapter or section.
  2431.  
  2432.  
  2433. Note that this command works only for LaTEX and linear RTF. See also set-
  2434. footer.
  2435.  
  2436.  
  2437.  
  2438.                                                                  31
  2439.  
  2440. ________________________________________________________CHAPTER_6___
  2441. shortcite:1
  2442.  
  2443.  
  2444. The same as cite.
  2445.  
  2446.  
  2447.  
  2448. small:1
  2449.  
  2450.  
  2451. Prints the argument in a small font.
  2452.  
  2453.  
  2454.  
  2455. subparagraph*:1
  2456.  
  2457.  
  2458. Behaves as for a subsubsection.
  2459.  
  2460.  
  2461.  
  2462. subparagraph:1
  2463.  
  2464.  
  2465. Behaves as for a subsubsection.
  2466.  
  2467.  
  2468.  
  2469. subsection*:1
  2470.  
  2471.  
  2472. Subsection header, with no entry in the contents page.
  2473.  
  2474.  
  2475.  
  2476. subsection:1
  2477.  
  2478.  
  2479. Subsection header, with an entry in the contents page.
  2480.  
  2481.  
  2482.  
  2483. subsubsection*:1
  2484.  
  2485.  
  2486. Subsubsection header, with no entry in the contents page.
  2487.  
  2488.  
  2489.  
  2490. subsubsection:1
  2491.  
  2492.  
  2493. Subsubsection header, with an entry in the contents page.
  2494.  
  2495.  
  2496.  
  2497. tabbing:1
  2498.  
  2499.  
  2500. Tabbing environment: doesn't work properly in RTF.
  2501.  
  2502.  
  2503.  
  2504. tableofcontents:0
  2505.  
  2506.  
  2507. Inserts the table of contents at this point. In linear RTF mode, a proper Word
  2508. for Windows table of contents will be inserted unless the variable insertTOC is
  2509. set to false.
  2510.  
  2511.  
  2512.  
  2513. tabular:2
  2514.  
  2515.  
  2516. Tabular environment: an attempt is made to output something reasonable in
  2517. RTF format, although currently only simple tables will work. The first argument
  2518. specifies the column formatting. a pipe symbol (_) denotes a vertical border,
  2519. one of l, r, c signifies a normal column of default width, and p followed by a
  2520. dimension specifies a column of given width. It is recommended that the p is
  2521.  
  2522.  
  2523.  
  2524.                                                                  32
  2525.  
  2526. ________________________________________________________CHAPTER_6___
  2527. used since Tex2RTF cannot deduce a column width in the same way that LaTEX
  2528. can.
  2529.  
  2530.  
  2531. Horizontal rules are achieved with hline; two together signify a double rule.
  2532.  
  2533.  
  2534. Use the Tex2RTF row and ruledrow commands for best effect.
  2535.  
  2536.  
  2537. For two-column tables that work in WinHelp files, use twocollist instead.
  2538.  
  2539.  
  2540. Example:
  2541. "begin-tabular"-_l_p-8.5cm"_""hline
  2542. "row--"bf A.I."&-"bf Simulation"""hline"hline
  2543. "row-rules&constraints/methods"
  2544. "row-planning&design of experiments"
  2545. "row-diagnosis&analysis of results"
  2546. "ruledrow-learning&detection of connections"
  2547. "end-tabular"
  2548.  
  2549.  
  2550. This produces:
  2551. ____________________________________________________________
  2552. |_A.I._____|Simulation______________________________________|_
  2553. | rules     |constraints/methods                            |
  2554. ||          ||                                              ||
  2555.  
  2556. ||planning  |design|of experiments                          ||
  2557.  
  2558. | diagnosis |analysis of results                            |
  2559. |_learning__|detection_of_connections_______________________|
  2560.  
  2561.  
  2562.  
  2563. TeX:0
  2564.  
  2565.  
  2566. Outputs the annoying TEX upper and lower case name.
  2567.  
  2568.  
  2569.  
  2570. textwidth:1
  2571.  
  2572.  
  2573. Sets the text width (valid for RTF only).  This might be used in conjunction
  2574. with marginpar, for example, to leave space for marginal notes.
  2575.  
  2576.  
  2577.  
  2578. thebibliography:1
  2579.  
  2580.  
  2581. An environment for specifying the a bibliography as a series of bibitem com-
  2582. mands; the preferred method is to use .bib files and bibliography instead.
  2583.  
  2584.  
  2585.  
  2586. title:1
  2587.  
  2588.  
  2589. Sets the title, to be output when the command maketitle is used.
  2590.  
  2591.  
  2592.  
  2593. tiny:1
  2594.  
  2595.  
  2596. Prints the argument in a very small font.
  2597.  
  2598.  
  2599.  
  2600. today:0
  2601.  
  2602.  
  2603. Outputs today's date.
  2604.  
  2605.  
  2606.  
  2607.                                                                  33
  2608.  
  2609. ________________________________________________________CHAPTER_6___
  2610. toocomplex:1
  2611.  
  2612.  
  2613. An environment for dealing with complex LaTEX commands that Tex2RTF can-
  2614. not handle.  In normal LaTEX, the argument will be output as normal.  In
  2615. Tex2RTF output, the argument will be output as verbatim text, for the user to
  2616. hand-translate into the desired output format.
  2617.  
  2618.  
  2619. See also comment.
  2620.  
  2621.  
  2622.  
  2623. tt:1
  2624.  
  2625.  
  2626. Outputs the argument in teletype font.
  2627.  
  2628.  
  2629.  
  2630. typeout:1
  2631.  
  2632.  
  2633. Outputs the text on the Tex2RTF text window.
  2634.  
  2635.  
  2636.  
  2637. twocolitem:2
  2638.  
  2639.  
  2640. Used to specify a row for a two column list, a Tex2RTF extension to optimize
  2641. two-column lists for different file formats. See twocollist,  twocolitemruled.
  2642.  
  2643.  
  2644.  
  2645. twocolitemruled:2
  2646.  
  2647.  
  2648. Used to specify a ruled row for a two column list, a Tex2RTF extension to opti-
  2649. mize two-column lists for different file formats. See twocollist,  twocolitem.
  2650.  
  2651.  
  2652.  
  2653. twocollist:1
  2654.  
  2655.  
  2656. A Tex2RTF environment for specifying a table of two columns, often used in
  2657. manuals and help files (for example, for listing commands and their meanings).
  2658. The first column should be one line only, and the second can be an arbitrary
  2659. number of paragraphs.
  2660.  
  2661.  
  2662. The reason that a normal tabular environment cannot be used is that WinHelp
  2663. does not allow borders in table cells, so a different method must be employed
  2664. if any of the rows are to be ruled. In LaTEX, a table is used to implement this
  2665. environment. In RTF, indentation is used instead.
  2666.  
  2667.  
  2668. Use this environment in conjunction with twocolitem and twocolitemruled.
  2669. To set the widths of the first and second column, use twocolwidtha and
  2670. twocolwidthb.
  2671.  
  2672.  
  2673. Example:
  2674. "htmlignore-"begin-twocollist""
  2675. "twocolitemruled--"bf Command""--"bf Description""
  2676. "twocolitem-File"-The file menu is used to select various file-related
  2677. operations, such as saving, loading, exporting, importing, saving as
  2678. and various other bits and pieces."
  2679. "twocolitem-Edit"-The Edit menu is used for selection, copying, pasting
  2680. and various other bits and pieces."
  2681. "end-twocollist"
  2682.  
  2683.  
  2684.  
  2685.                                                                  34
  2686.  
  2687. ________________________________________________________CHAPTER_6___
  2688. This produces:
  2689.  
  2690.  
  2691.  
  2692.  Command     Description
  2693. _______________________________________________________________
  2694.  
  2695.  File         The file menu is used to select various file-related op-
  2696.               erations, such as saving, loading, exporting, importing,
  2697.               saving as and various other bits and pieces.
  2698.  
  2699.  
  2700.  Edit         The Edit menu is used for selection, copying, pasting
  2701.               and various other bits and pieces.
  2702. twocolwidtha:1
  2703.  
  2704.  
  2705. Sets the width of the first column in a two column list to the given dimension.
  2706. See also twocollist and twocolwidthb.
  2707.  
  2708.  
  2709.  
  2710. twocolwidthb:1
  2711.  
  2712.  
  2713. Sets the width of the second column in a two column list to the given dimension.
  2714. See also twocollist and twocolwidtha.
  2715.  
  2716.  
  2717.  
  2718. twocolumn:0
  2719.  
  2720.  
  2721. Sets the number of columns to two. LaTEX and linear RTF only.
  2722.  
  2723.  
  2724.  
  2725. underline:1
  2726.  
  2727.  
  2728. Underlines the argument.
  2729.  
  2730.  
  2731.  
  2732. verbatiminput:1
  2733.  
  2734.  
  2735. Include the given file as if it were within a verbatim environment. The com-
  2736. mand must not be preceded by any whitespace, and spurious whitespace between
  2737. elements of the command will also trip up Tex2RTF.
  2738.  
  2739.  
  2740.  
  2741. verbatim:1
  2742.  
  2743.  
  2744. Uses a fixed-width font to format the argument without interpreting any LaTEX
  2745. commands.
  2746.  
  2747.  
  2748.  
  2749. verb
  2750.  
  2751.  
  2752. The verb command is like the verbatim (section 6.1)  environment, but for
  2753. small amounts of text. The syntax is:
  2754. "verb<char><text><char>
  2755.  
  2756.  
  2757. The character char is used as a delimiter; it may be any character not ocurring
  2758. in the following text, except asterisk.
  2759.  
  2760.                                                                  35
  2761.  
  2762. ________________________________________________________CHAPTER_6___
  2763. For example, "verb$"thing%^&$ produces "thing%^&.
  2764.  
  2765.  
  2766.  
  2767. winhelpignore:1
  2768.  
  2769.  
  2770. Ignores the argument in WinHelp RTF.
  2771.  
  2772.  
  2773.  
  2774. winhelponly:1
  2775.  
  2776.  
  2777. Only outputs the argument in WinHelp RTF.
  2778.  
  2779.  
  2780.  
  2781. xlpignore:1
  2782.  
  2783.  
  2784. Ignores the argument in XLP mode (wxHelp files).
  2785.  
  2786.  
  2787.  
  2788. xlponly:1
  2789.  
  2790.  
  2791. Only outputs the argument in XLP mode (wxHelp files).
  2792. 6.2   Accents
  2793.  
  2794.  
  2795. The following LaTEX accents work for RTF production:
  2796.  
  2797.  
  2798.  
  2799.    o "'-a" produces 'a. Valid for a, e, i, o, u, A, E, I, O, U
  2800.  
  2801.    o "`-a" produces `a. Valid for a, e, i, o, u, y, A, E, I, O, U, Y
  2802.  
  2803.    o "^-a" produces ^a. Valid for a, e, i, o, u, A, E, I, O, U
  2804.  
  2805.    o ""-a" produces "a. Valid for a, n, o, A, N, O
  2806.  
  2807.    o ""-a" produces "a. Valid for a, e, i, o, u, y, A, E, I, O, U, Y
  2808.  
  2809.    o ".-a" produces `a. Valid for a, A
  2810.  
  2811.  
  2812.  
  2813.                                                                  36
  2814.  
  2815.  
  2816. 7.      Bugs  and  troubleshooting
  2817. ____________________________________________________________________
  2818.  
  2819.  
  2820.  
  2821. 7.1   Bugs
  2822.  
  2823.  
  2824. Command parsing.   If a command is used followed by inappropriate argument
  2825.      syntax, Tex2RTF can crash. This an occur when a command is used in
  2826.      an asterisk form that is only formed in the non-asterisk variety. The non-
  2827.      asterisk form is assumed, which makes the following asterisk trip up the
  2828.      parser.
  2829.  
  2830. Setlength. Using the \setlength command doesn't work, since its first argu-
  2831.      ment looks like a macro with the wrong number of arguments. Use an al-
  2832.      ternative form instead, e.g. "parindent 0pt instead of "setlength-parinden*
  2833.  *t"-0pt".
  2834.  
  2835. Newcommand bug.    Environments in a command definition confuse Tex2RTF.
  2836.      Use the command form instead (e.g. \flushleft{...} instead of \begin{flush*
  2837.  *left}
  2838.      ... \end{flushleft}.
  2839.  
  2840. Bibliography. There's no flexibility in the way references are output: I expect
  2841.      I'll get round to doing something better, but only if people tell me they
  2842.      need it!
  2843.  
  2844. Tables.Tables can't handle all LaTEX syntax, and require the Tex2RTF "row
  2845.      commands for decent formatting. Still, it's better than it was (RTF only).
  2846.  
  2847. Indexes and glossaries.Not completely supported.
  2848.  
  2849. Crashes. Crashes may be due to an input file exceeding the fixed-size buffer
  2850.      used for converting command arguments, especially for the verbatim com-
  2851.      mand. Use the -bufsize switch to increase the buffer size.
  2852.  
  2853. Verbatiminput.  Verbatiminput files which do not end with a blank line can
  2854.      trip up following commands.
  2855. 7.2   Troubleshooting
  2856.  
  2857.  
  2858. Below are some common problems and possible solutions.
  2859.  
  2860.  
  2861.  
  2862. 7.2.1 Macro not found
  2863.  
  2864.  
  2865. This error may indicate that Tex2RTF has not implemented a standard LaTEX
  2866. macro, or that a local macro package is being used that Tex2RTF does not know
  2867. about. It can cause spurious secondary errors, such as not recognising the end
  2868. document command.
  2869.  
  2870.  
  2871. You can get round this by defining a macro file (default name tex2rtf.ini)
  2872. containing command definitions, such as:
  2873.  
  2874.  
  2875.  
  2876.                                                                  37
  2877.  
  2878. ________________________________________________________CHAPTER_7___
  2879. "crazy      [2]--"bf #2" is crazy but #1 is not"
  2880. "something  [0]-"
  2881. "julian     [0]-Julian Smart"
  2882.  
  2883.  
  2884. New commands may be defined in LaTEX files, but custom macro files will have
  2885. to be defined when local style files are being used.  See Initialisation file
  2886. syntax (section 4.2)  for further details.
  2887.  
  2888.  
  2889. The `Macro not found' error can also be caused by a syntax error such as an
  2890. unbalanced brace or passing the wrong number of arguments to a macro, so
  2891. look in the vicinity of the reported error for the real cause.
  2892.  
  2893.  
  2894. Here is one obscure situation that causes this error:
  2895. "begin-center"
  2896. -"large-"underline-A"""
  2897. "end-center"
  2898.  
  2899.  
  2900. The problem is too many curly brackets. This should be rewritten as:
  2901. "begin-center"
  2902. -"large "underline-A""
  2903. "end-center"
  2904.  
  2905.  
  2906.  
  2907. 7.2.2 Unresolved reference
  2908.  
  2909.  
  2910. References and citations are usually resolved on a second pass of Tex2RTF. If
  2911. this doesn't work, then a missing label or bibliographical entry is to blame.
  2912.  
  2913.  
  2914.  
  2915. 7.2.3 Output crashes the RTF reader
  2916.  
  2917.  
  2918. This could be due to confusing table syntax. Set 'compatibility ' to TRUE in
  2919. .ini file; also check for end of row characters backslash characters on their o*
  2920.  *wn
  2921. on a line, and insert correct number of ampersands for the number of columns.
  2922. E.g.
  2923. hello & world""
  2924. ""
  2925.  
  2926.  
  2927. becomes
  2928. hello & world""
  2929. &""
  2930.  
  2931.  
  2932.  
  2933. 7.2.4 Erratic list indentation
  2934.  
  2935.  
  2936. Try increasing the value of the variable listItemIndent (default 40 points) to *
  2937.  *give
  2938. more space between label and following text.  A global replace of "item [ to
  2939. "item[ may also be helpful to remove unnecessary space before the item label.
  2940.  
  2941.  
  2942.  
  2943. 7.2.5 Missing figure or section reference
  2944.  
  2945.  
  2946. Ensure all labels directly follow captions or sections (no intervening white sp*
  2947.  *ace).
  2948.                                                                  38
  2949.  
  2950. ________________________________________________________CHAPTER_7___
  2951. 7.2.6 Unresolved references in Word for Windows
  2952.  
  2953.  
  2954. If question marks appear instead of numbers for figures and tables, select all
  2955. (e.g. CTRL-A), then press F9 twice to reformat the document twice. For the
  2956. second format, respond with Update Entire Table to any prompts.
  2957.  
  2958.                                                                  39
  2959.  
  2960.  
  2961. Bibliography
  2962. [1]Scott Boggan, David Fakas, and Joe Welinske. Developing on-line help for
  2963.    Windows. Sams Publishing, 11711 North College, Carmel, Indiana 46032,
  2964.    USA, 1993.
  2965.  
  2966. [2]Helmut Kopka and Patrick W. Daly. A Guide to LaTeX. Addison-Wesley,
  2967.    1993.
  2968.  
  2969. [3]Katherine Shelly Pfeiffer. Word for Windows Design Companion. Ventana
  2970.    Press, 1994.
  2971.  
  2972. [4]Gabriel Robins.  The ISI grapher:  a portable tool for displaying graphs
  2973.    pictorially (isi/rs-87-196). Technical report, University of South Californi*
  2974.  *a,
  2975.    September 1987.
  2976.  
  2977. [5]Julian Smart. wxWindows 1.50 User Manual. University of Edinburgh, 80
  2978.    South Bridge, Edinburgh, EH1 1HN, 1993.
  2979.  
  2980.  
  2981.                                                                  40
  2982.  
  2983. _________________________________________________________GLOSSARY___
  2984.  
  2985.  
  2986.  
  2987. Glossary
  2988.  
  2989.  
  2990. GUI  Graphical User Interface, such as Windows 3 or X.
  2991.  
  2992. HTML   Hypertext Markup Language; an SGML document type, used for pro-
  2993.      viding hypertext information on the World Wide Web, a distributed hy-
  2994.      pertext system on the Internet.
  2995.  
  2996. LaTEX A typesetting language implemented as a set of TEX macros. It is distin-
  2997.      guished for allowing specification of the document structure, whilst taking
  2998.      care of most layout concerns. It represents the opposite end of the spec-
  2999.      trum from WYSIWYG word processors.
  3000.  
  3001. Metafile Microsoft Windows-specific object which may contain a restricted
  3002.      set of GDI primitives.  It is device independent, since it may be scaled
  3003.      without losing precision, unlike a bitmap. A metafile may exist in a file *
  3004.  *or
  3005.      in memory. wxWindows implements enough metafile functionality to use
  3006.      it to pass graphics to other applications via the clipboard.  A placeable
  3007.      metafile is a metafile with a 22-byte header which can be imported into
  3008.      several Windows applications, and is a format used by the Microsoft help
  3009.      compiler.
  3010.  
  3011. Open Look  A specification for a GUI `look and feel', initiated by Sun Mi-
  3012.      crosystems.  XView is one toolkit for writing Open Look applications
  3013.      under X, and wxWindows sits on top of XView.
  3014.  
  3015. RTF  Rich Text Format: an interchange format for word processor files, used
  3016.      for importing and exporting formatted documents, and as the input to
  3017.      the Windows Help compiler.
  3018.  
  3019. wxHelp  wxHelp is the hypertext help facility used to provide on-line doc-
  3020.      umentation for UNIX-based wxWindows applications.  Under Windows
  3021.      3.1, Windows Help is used instead.
  3022.  
  3023. wxWindows   wxWindows is a free C++ toolkit for writing applications that
  3024.      are portable across several platforms.  Currently these are Motif, Open
  3025.      Look, Windows 3.1 and Windows NT.
  3026.  
  3027. XView  An X toolkit supplied by Sun Microsystems, initially just for porting
  3028.      SunView applications to X, but which has become a popular toolkit in
  3029.      its own right due to its simplicity of use. XView implements Sun's Open
  3030.      Look `look and feel' for X, but is not the only toolkit to do so.
  3031.  
  3032.                                                                  41
  3033.